package com.jsu.springboot_crop.service;

import com.github.pagehelper.PageInfo;
import com.jsu.springboot_crop.entity.Order;

public interface OrderService {
    PageInfo<Order> selectAll(Integer pageNum);
    PageInfo<Order> selectAllGoods(Integer pageNum);
    PageInfo<Order> selectAllByKeys(String keys,Integer pageNum);
    PageInfo<Order> selectGoodsByKeys(String keys,Integer pageNum,String name);
    Order selectById(Integer id);
    void add(Order order);
    void update(Order order);
    void delete(Integer id);
    PageInfo<Order> selectByType(String type,Integer pageNum);
    //分页查询所有需求
    PageInfo<Order> selectAllNeeds(Integer pageNum);
    //条件查询所有需求
    PageInfo<Order> selectNeedsByKeys(String keys,Integer pageNum,String name);
    //商品下架
    void takeDown(String orderId);
//上架
    void takeUp(String orderId);

}
